package normal;

import java.util.Calendar;
import java.util.Collections;
import java.util.List;

import util.Tools;

public class QuickSort {
    public static void main(String[] args) {
        List<Integer> tm = Tools.getThousandNums();
        List<Integer> ttm = Tools.getTenThousandNums();
        List<Integer> htm = Tools.getHundredThousandNums();
        List<Integer> mn = Tools.getMillionNums();

        long startTime = Calendar.getInstance().getTimeInMillis();
        Collections.sort(tm);
        Collections.sort(ttm);
        Collections.sort(htm);
        Collections.sort(mn);
        long endTime = Calendar.getInstance().getTimeInMillis();
        System.out.println("开始时间: " + startTime);
        System.out.println("结束时间: " + endTime);
        System.out.println("并行方式对整数集进行排序处理，使用时间(毫秒数):" + (endTime - startTime));
    }
}
